#include <iostream>
using namespace std;

template <class T>
class mypair {
	T a, b;
public:
	mypair (T first, T second)
	{a=first; b=second;}
	T getmax ();
};

template <class T>
T mypair<T>::getmax ()
{
	T retval;
	retval = a>b? a : b;
	return retval;
}

int TemplateTestMain () {
	mypair <int> myobject (100, 75);
	void *p = &myobject;
	cout<<sizeof(mypair<int>)<<endl;
	cout << myobject.getmax();
	return 0;
}
